home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MIDICraft's MIDINET CD-ROM
/
MIDICraft's MIDINET CD-ROM.iso
/
DOSUTILS
/
MIDI2TO0.DOC
< prev
next >
Wrap
Text File
|
1995-10-21
|
4KB
|
119 lines
******************************
MIDI2TO0 v1.0
midi binary format 2 to 0
by Guenter Nagler
1995
(gnagler@ihm.tu-graz.ac.at)
******************************
[0] FEATURES
+ reads a binary midi file of format 2 (needs to be valid)
+ writes some binary midi files of format 0
[1] BACKGROUND
Many midiplayers are not able to play midi format 2, mine too.
Midi format 2 contains one or more multichannel tracks that should
be played sequentially (that means more than one song in a file).
Even if this format is very rarely used it could happen that
we get a midi of this format and then we will be lucky to be able
converting it to something that we can hear.
[2] FILES DESCRIPTION
MIDI2TO0.EXE.........converter program
MIDI2TO0.DOC.........this file, showing usage of MIDI2TO0.EXE
MIDIIO.HPP...........header file for a c++ midi parser
MIDIIO.CPP...........source code for a c++ midi parser
MIDI2TO0.CPP.........c++ source code for midi 2 to 0
MIDI2TO0.MAK.........make file for project
MIDI2TO0.CFG.........compiler options for make
MIDI2TO0.PRJ.........compiler project for borland c++ compilers
only MIDI2TO0.EXE is required to run program
[3] COPYRIGHT
MIDI2TO0 (c) 1995 was created by Guenter Nagler.
MIDI2TO0 is free and may be used as you wish with this one exception:
You may NOT charge any fee or derive any profit for distribution
of MIDI2TO0. Thus, you may NOT sell or bundle MIDI2TO0 with any
product in a retail environment (shareware disk distribution, CD-ROM,
etc.) without permission of the author.
You may give MIDI2TO0 to your friends, upload it to a BBS, or ftp it to
another internet site, as long as you don't charge anything for it.
[4] DISCLAIMER
MIDI2TO0 was designed to handle 100% compatible midi files.
So I give no guarantees that the output of program will contain
errorfree 100% compatible midi files.
Use MIDI2TO0 at your own risk. Anything you do with MIDI2TO0 is your
responsibility, and not the author's. Any damage caused to any person,
computer, software, hardware, company, or business by running MIDI2TO0
is your responsibility, and the author will not be liable.
If you don't understand these terms, or are not sure of something, or
are afraid something bad might come of using MIDI2TO0, don't use it!
You are here forewarned.
[5] INSTALLATION
[MSDOS]
Simply copy MIDI2TO0.EXE in a directory that is in your path.
When you start the program without arguments
C:\> MIDI2TO0
you should get the usage text (see next section)
[UNIX]
compile sources with your C++ compiler (e.g. GNU Compiler g++):
g++ -o midi2to0 midi2to0.cpp midiio.cpp
and run program
$ midi2to0
[6] USAGE
usage: MIDI2TO0 [-q][-prefix out] midi2fmt.mid
The parts in brackets [...] are optional.
The program MIDI2TO0 allows following option:
-q be quiet, program does not show percentage
-prefix out generates output files of form out#.mid where # is the
extracted track number.
MIDI2TO0 does not convert files that are not of format 2!
Warning:
Use -prefix option to generate outputfiles that do not exist!
Otherwise existing files will be overwritten!
[8] SUGGESTIONS / COMMENTS / BUG REPORTS / QUESTIONS
WWW: http://hgiicm.tu-graz.ac.at/Cpub
contains all my dos/unix midi programs
EMAIL: gnagler@ihm.tu-graz.ac.at
[9] USE
For example, you have a midi file example.mid that you expect to be format 2.
midi2to0 -prefix foo example.mid
If it is not a format 2 midi, the program will stop with a message like that:
"This file is midi format 2. Its format 1."
If it is a format 2 midi it will try to split all tracks:
writing foo1.mid
writing foo2.mid
writing foo3.mid